package com.hong.fy_model.model.review;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;



import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hong.fy_model.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 
 *
 * @author wqh
 * @email 1601709391@qq.com
 * @date 2022-06-15 20:37:30
 */
@Data
@TableName("review")
@ApiModel(value = "ReviewEntity", description = "评论")
public class ReviewEntity  implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 评论编号
	 */
	@TableId(value = "review_id",type = IdType.AUTO)
	@ApiModelProperty(value = "评论编号")
	private Integer reviewId;

	/**
	 * 用户ID
	 */
	@TableField("user_id")
	@ApiModelProperty(value = "用户ID")
	private Integer userId;

	/**
	 * 商品ID
	 */
	@TableField("product_id")
	@ApiModelProperty(value = "商品ID")
	private Integer productId;
	/**
	 * 评论的内容
	 */
	@TableField("content")
	@ApiModelProperty(value = "评论的内容")
	private String content;

	/**
	 * 回复的评论ID 若为0则表示该评论不是某条评论的回复
	 */
	@TableField("parent_id")
	@ApiModelProperty(value = "回复的评论ID 若为0则表示该评论不是某条评论的回复")
	private Integer parentId;

	/**
	 * 赞的数量
	 */
	@TableField(value = "vote_up")
	@ApiModelProperty(value = "赞的数量")
	private Integer voteUp;

	/**
	 * 踩的数量
	 */
	@TableField("vote_down")
	@ApiModelProperty(value = "踩的数量")
	private Integer voteDown;

	/**
	 * 置顶等级
	 */
	@TableField("level")
	@ApiModelProperty(value = "置顶等级")
	private Integer level;

	@ApiModelProperty(value = "创建时间" )
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField("create_time")
	private Date createTime;

	@ApiModelProperty(value = "更新时间")
	@TableField("update_time")
	private Date updateTime;



}
